jQuery(document).ready(function($) {
    $("#training-video .play-video").click(function (event) {
        var video_id = event.target.id;
        _gaq.push(['_trackEvent', 'Video', video_id]);
        var iframe_str = '<iframe width="640" height="360" src="http://www.youtube.com/embed/'+video_id+'?autoplay=1&rel=0" frameborder="0"  allowfullscreen></iframe>'
        $(this).parent().html(iframe_str);
   });
   $("#sidebar-video .play-video").click(function (event) {
        var video_id = event.target.id;
        _gaq.push(['_trackEvent', 'Video', video_id]);
        var iframe_str = '<iframe width="640" height="360" src="http://www.youtube.com/embed/'+video_id+'?autoplay=1&rel=0" frameborder="0"  allowfullscreen></iframe>'
        $("#sidebar-video-holder").html(iframe_str);
   });
});
